package com.zzy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 该类必选 放到 java class 同级目录
 * */

/** 使用 jar  包发布  */



@SpringBootApplication
@EnableEurekaClient
//@ComponentScan("com.zzy")
//@EntityScan("com.zzy.model")
@EnableCaching
@EnableAutoConfiguration
//@SpringBootApplication(exclude={DataSourceAutoConfiguration.class,HibernateJpaAutoConfiguration.class})
@EnableDiscoveryClient
public class AppProviderJar {
    public static void main( String[] args ) {
        SpringApplication.run(AppProviderJar.class, args);
    }
}
